package com.example.importannotation;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program my-project-model
 * @description:
 * @author: lee
 * @create: 2022/06/13 14:18
 */
public class StaticDataConfiguration {
    @Configuration(proxyBeanMethods = false)
    static class StaticPartOneConfiguration {

        @Bean
        @ConditionalOnMissingBean
        public BeanForIoc beanForIoc() {
            return new BeanForIoc();
        }

    }
}
